package com.dnjn.happiness.cms.mapper;

import com.dnjn.happiness.cms.domain.Banner;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * Banner Mapper 接口
 * </p>
 *
 * @author Amber
 * @since 2023-10-10
 */
public interface BannerMapper extends BaseMapper<Banner> {

    @Update("update cms_banner set deleted = '1' where banner_id = #{bannerId}")
    void deleteBanner(Long bannerId);
}
